.class public final Lcn/cheln/support/images/f;
.super Ljava/lang/Object;


# static fields
.field public static a:[Lcn/cheln/support/images/f;


# instance fields
.field public b:Lcn/cheln/support/images/FileCategoryHelper$FileCategory;

.field public c:Landroid/graphics/Bitmap;

.field public d:[Ljava/lang/String;

.field public e:Ljava/lang/String;

.field public f:Ljava/lang/String;

.field public g:Ljava/lang/String;

.field public h:Landroid/net/Uri;


# direct methods
.method static constructor <clinit>()V
    .locals 9

    const/4 v6, 0x2

    const/4 v8, 0x1

    const/4 v7, 0x0

    const/4 v0, 0x4

    new-array v0, v0, [Lcn/cheln/support/images/f;

    new-instance v1, Lcn/cheln/support/images/f;

    sget-object v2, Lcn/cheln/support/images/FileCategoryHelper$FileCategory;->Music:Lcn/cheln/support/images/FileCategoryHelper$FileCategory;

    sget-object v3, Lcn/cheln/explorer/beans/FileInfo;->iconAudio:Landroid/graphics/Bitmap;

    new-array v4, v8, [Ljava/lang/String;

    const-string v5, "audio"

    aput-object v5, v4, v7

    invoke-direct {v1, v2, v3, v4}, Lcn/cheln/support/images/f;-><init>(Lcn/cheln/support/images/FileCategoryHelper$FileCategory;Landroid/graphics/Bitmap;[Ljava/lang/String;)V

    aput-object v1, v0, v7

    new-instance v1, Lcn/cheln/support/images/f;

    sget-object v2, Lcn/cheln/support/images/FileCategoryHelper$FileCategory;->Video:Lcn/cheln/support/images/FileCategoryHelper$FileCategory;

    sget-object v3, Lcn/cheln/explorer/beans/FileInfo;->iconVideo:Landroid/graphics/Bitmap;

    new-array v4, v8, [Ljava/lang/String;

    const-string v5, "video"

    aput-object v5, v4, v7

    invoke-direct {v1, v2, v3, v4}, Lcn/cheln/support/images/f;-><init>(Lcn/cheln/support/images/FileCategoryHelper$FileCategory;Landroid/graphics/Bitmap;[Ljava/lang/String;)V

    aput-object v1, v0, v8

    new-instance v1, Lcn/cheln/support/images/f;

    sget-object v2, Lcn/cheln/support/images/FileCategoryHelper$FileCategory;->Picture:Lcn/cheln/support/images/FileCategoryHelper$FileCategory;

    sget-object v3, Lcn/cheln/explorer/beans/FileInfo;->iconImageLoading:Landroid/graphics/Bitmap;

    new-array v4, v8, [Ljava/lang/String;

    const-string v5, "image"

    aput-object v5, v4, v7

    invoke-direct {v1, v2, v3, v4}, Lcn/cheln/support/images/f;-><init>(Lcn/cheln/support/images/FileCategoryHelper$FileCategory;Landroid/graphics/Bitmap;[Ljava/lang/String;)V

    aput-object v1, v0, v6

    const/4 v1, 0x3

    new-instance v2, Lcn/cheln/support/images/f;

    sget-object v3, Lcn/cheln/support/images/FileCategoryHelper$FileCategory;->Doc:Lcn/cheln/support/images/FileCategoryHelper$FileCategory;

    sget-object v4, Lcn/cheln/explorer/beans/FileInfo;->iconDoc:Landroid/graphics/Bitmap;

    new-array v5, v6, [Ljava/lang/String;

    const-string v6, "application"

    aput-object v6, v5, v7

    const-string v6, "text"

    aput-object v6, v5, v8

    invoke-direct {v2, v3, v4, v5}, Lcn/cheln/support/images/f;-><init>(Lcn/cheln/support/images/FileCategoryHelper$FileCategory;Landroid/graphics/Bitmap;[Ljava/lang/String;)V

    aput-object v2, v0, v1

    sput-object v0, Lcn/cheln/support/images/f;->a:[Lcn/cheln/support/images/f;

    return-void
.end method

.method public varargs constructor <init>(Lcn/cheln/support/images/FileCategoryHelper$FileCategory;Landroid/graphics/Bitmap;[Ljava/lang/String;)V
    .locals 1

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const-string v0, ""

    iput-object v0, p0, Lcn/cheln/support/images/f;->g:Ljava/lang/String;

    iput-object p1, p0, Lcn/cheln/support/images/f;->b:Lcn/cheln/support/images/FileCategoryHelper$FileCategory;

    iput-object p3, p0, Lcn/cheln/support/images/f;->d:[Ljava/lang/String;

    iput-object p2, p0, Lcn/cheln/support/images/f;->c:Landroid/graphics/Bitmap;

    return-void
.end method

.method private constructor <init>(Ljava/lang/String;)V
    .locals 1

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const-string v0, ""

    iput-object v0, p0, Lcn/cheln/support/images/f;->g:Ljava/lang/String;

    iput-object p1, p0, Lcn/cheln/support/images/f;->f:Ljava/lang/String;

    return-void
.end method

.method public static a(Lcn/cheln/explorer/beans/FileInfo;)Lcn/cheln/support/images/f;
    .locals 9

    const-string v8, "video"

    const-string v7, "image"

    const-string v4, "audio"

    const-string v6, "apk"

    const-string v5, ""

    const/4 v0, 0x0

    const-string v1, ""

    invoke-virtual {p0}, Lcn/cheln/explorer/beans/FileInfo;->f()Ljava/lang/String;

    move-result-object v1

    if-nez v1, :cond_0

    invoke-virtual {p0}, Lcn/cheln/explorer/beans/FileInfo;->n()V

    :cond_0
    invoke-virtual {p0}, Lcn/cheln/explorer/beans/FileInfo;->f()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Lcn/cheln/support/app/a;->d(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    new-instance v2, Lcn/cheln/support/images/f;

    invoke-direct {v2, v1}, Lcn/cheln/support/images/f;-><init>(Ljava/lang/String;)V

    invoke-static {}, Lcn/cheln/support/images/g;->b()Lcn/cheln/support/images/g;

    move-result-object v3

    invoke-virtual {v1}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v3, v1}, Lcn/cheln/support/images/g;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    if-nez v1, :cond_1

    move-object v0, v2

    :goto_0
    return-object v0

    :cond_1
    const-string v3, "image"

    invoke-virtual {v1, v7}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_2

    sget-object v0, Lcn/cheln/explorer/ds/a;->c:Landroid/net/Uri;

    const-string v3, "image"

    move-object v3, v0

    move-object v0, v7

    :goto_1
    iput-object v1, v2, Lcn/cheln/support/images/f;->e:Ljava/lang/String;

    iput-object v0, v2, Lcn/cheln/support/images/f;->g:Ljava/lang/String;

    iput-object v3, v2, Lcn/cheln/support/images/f;->h:Landroid/net/Uri;

    move-object v0, v2

    goto :goto_0

    :cond_2
    const-string v3, "audio"

    invoke-virtual {v1, v4}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_3

    sget-object v0, Lcn/cheln/explorer/ds/a;->a:Landroid/net/Uri;

    const-string v3, "audio"

    move-object v3, v0

    move-object v0, v4

    goto :goto_1

    :cond_3
    const-string v3, "video"

    invoke-virtual {v1, v8}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_4

    sget-object v0, Lcn/cheln/explorer/ds/a;->b:Landroid/net/Uri;

    const-string v3, "video"

    move-object v3, v0

    move-object v0, v8

    goto :goto_1

    :cond_4
    invoke-virtual {p0}, Lcn/cheln/explorer/beans/FileInfo;->f()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v3

    const-string v4, "apk"

    invoke-virtual {v3, v6}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_5

    const-string v0, "apk"

    sget-object v0, Lcn/cheln/explorer/ds/a;->e:Landroid/net/Uri;

    move-object v3, v0

    move-object v0, v6

    goto :goto_1

    :cond_5
    const-string v3, "application"

    invoke-virtual {v1, v3}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_6

    const-string v3, "text"

    invoke-virtual {v1, v3}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_7

    :cond_6
    const-string v0, "doc"

    sget-object v3, Lcn/cheln/explorer/ds/a;->e:Landroid/net/Uri;

    goto :goto_1

    :cond_7
    invoke-virtual {p0}, Lcn/cheln/explorer/beans/FileInfo;->p()Ljava/io/File;

    move-result-object v3

    invoke-virtual {v3}, Ljava/io/File;->isDirectory()Z

    move-result v3

    if-eqz v3, :cond_8

    const-string v0, ""

    sget-object v0, Lcn/cheln/explorer/ds/a;->d:Landroid/net/Uri;

    move-object v3, v0

    move-object v0, v5

    goto :goto_1

    :cond_8
    iget-object v3, p0, Lcn/cheln/explorer/beans/FileInfo;->name:Ljava/lang/String;

    invoke-virtual {v3}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v3

    const-string v4, "lwt"

    invoke-virtual {v3, v4}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_9

    const-string v0, "lewa/theme"

    sget-object v3, Lcn/cheln/explorer/ds/a;->e:Landroid/net/Uri;

    goto :goto_1

    :cond_9
    move-object v3, v0

    move-object v0, v5

    goto :goto_1
.end method
